package com.usaas.search.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 分页数据
 */
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@Data
public class CommonPage implements Serializable {

    @TableField(exist = false)
    private List<String> ids;
    /**
     * 当前记录起始索引
     */
    @TableField(exist = false)
    private Integer pageNum;

    /**
     * 每页显示记录数
     */
    @TableField(exist = false)
    private Integer pageSize;

    /**
     * 排序列
     */
    @TableField(exist = false)
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    @TableField(exist = false)
    private String isAsc = "asc";

    /**
     * 分页参数合理化
     */
    @TableField(exist = false)
    private Boolean reasonable = true;

}
